package com.imu.wys.service.impl;


import com.imu.wys.mapper.CourseMapper;
import com.imu.wys.model.Course;
import com.imu.wys.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CourseService")
public class CourseServiceImpl implements CourseService {
    @Autowired
    CourseMapper courseMapper;
    public void addCourse(Course course){
        courseMapper.addCourse(course);
    }

    @Override
    public int updateByID(Course course) {
        return courseMapper.updateByID(course);
    }

    @Override
    public List<Course> getAll() {
        return courseMapper.getAll();
    }
}
